#ifndef IMAGEDECODERCALLBACK_H_
#define IMAGEDECODERCALLBACK_H_

#include <ImageConversion.h>

struct MImageDecoderCallback
	{
	virtual void MImageDecoderCallbackRunL() = 0;
	};

class CImageDecoderCallback : public CActive
	{
public:
	static CImageDecoderCallback* NewL();
	static CImageDecoderCallback* NewLC();
	virtual ~CImageDecoderCallback();
	void SetActive(MImageDecoderCallback* aTarget);
	
protected:
	void RunL();
	TInt RunError(TInt aError);
	void DoCancel();
private:
	MImageDecoderCallback* iTarget;
	CImageDecoderCallback();
	void ConstructL();
	};

#endif /* IMAGEDECODERCALLBACK_H_ */
